# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-checksumdir
_pkgname=checksumdir
pkgver=1.2.0
pkgrel=7
pkgdesc='Compute a single hash of the file contents of a directory.'
url='https://pypi.org/project/checksumdir/#files'
arch=('any')
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('f4414151ee944329a392d10e5cc48e357b75ee8d244fddb9848ed244c310d6550fd14ebb025866c3a012972e53690a88610906f4fbf3bd34ef2c06213cee50f5')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
    --skip-build
}

